-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove patientId field, fixed next appointment bug, removed unus… #5
Conversation
app/reports/edit/template.hbs
Outdated
{{#if model.visit.startDate}} | ||
<div class="ps-info-group"> | ||
<label class="ps-info-label">{{t 'reports.form.visitDate' }}</label> | ||
<input class="form-control" value={{date-format model.visit.startDate format="DD/MM/YYYY hh:mm a"}}> | ||
<input class="form-control" disabled value={{date-format model.visit.startDate format="DD/MM/YYYY hh:mm a"}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The date field should be displayed just as text, not an input element. A tech-savvy/malicious user could tweak the disabled property of the input, and change the date.
Kindly implement this as text: <p>
or <span>
, not <input>
app/reports/edit/template.hbs
Outdated
@@ -83,7 +78,7 @@ | |||
{{#if nextAppointment}} | |||
<div class="ps-info-group"> | |||
<label class="ps-info-label">{{t 'reports.form.nextAppointmentDate' }}</label> | |||
<input class="form-control" value={{date-format nextAppointment format="DD/MM/YYYY hh:mm a"}}> | |||
<input class="form-control" disabled value={{date-format nextAppointment format="DD/MM/YYYY hh:mm a"}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The appointment field should also be text not input, as stated above
Fixed issues raised in sprint retro